<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<style>
			*{
				
				color: #aaaaff;
				background: #00aa7f;
			}
			div{
				color: #ffaaff;
				background: #ffaa7f;
			}
			div.d1{
				color: #ff5500;
				background: #00ffff;
			}
			body div.d1{
				font-size: 20px;
				color: #aaff00;
				background: #55557f;
			}
		</style>
	</head>
	<body>
		<div class="d1" id="d1" style="color: red;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Odio illo facere quibusdam facilis soluta, quaerat reiciendis sequi incidunt asperiores non officia atque dolorem pariatur deserunt nihil, eaque esse! Facilis, fugit.</div>
	</body>
</html>